import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { SharedModule } from "../../../share/shared.module";

import { WelcomeComponent } from "./welcome.component";

const routes: Routes = [
  {
    path: "",
    component: WelcomeComponent,
    data: { title: "首页" },
  },
];

@NgModule({
  imports: [SharedModule, RouterModule.forChild(routes)],
  declarations: [WelcomeComponent],
  exports: [WelcomeComponent],
})
export class WelcomeModule {}
